home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 1506 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  779 b 

  1. Path: jupiter.planet.net!usenet
  2. From: Chris Kemp <chrisk@paladn.com>
  3. Newsgroups: comp.lang.c
  4. Subject: is this string a number?
  5. Date: 14 Jan 1996 20:19:32 GMT
  6. Organization: Paladin Consultants, Inc.
  7. Message-ID: <4dbogk$763@jupiter.planet.net>
  8. NNTP-Posting-Host: denv30.planet.net
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 1.2N (Windows; I; 32bit)
  13.  
  14. I am inputting a string from the keyboard from a user, and 
  15. intend to use the atol or strtol functions to convert the 
  16. string to a number.
  17.  
  18. But first I must make sure the user provided a legitimate 
  19. number (not line 1234B).
  20.  
  21. Is there a library function which will make this determination 
  22. for me, or must I make up one of my own with somthing like 
  23. strtok?
  24.  
  25. TIA
  26.  
  27.